home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Mac Magazin/MacEasy 19
/
Mac Magazin and MacEasy Magazine CD - Issue 19.iso
/
Grafik & Text & Film
/
Quark XTensions
/
Freeware Xtensions
/
Quark AppleScript Scripts
/
Scripts (text only)
/
Open to Page
< prev
next >
Wrap
Text File
|
1994-05-02
|
742b
|
32 lines
--Copyright 1994 Quark, Inc. All rights reserved.
script OpenToPage
tell application "QuarkXPress™"
activate
set thefile to choose file of type {"XDOC", "XTMP"} with prompt "Select the QuarkXPress™ document to open."
display dialog "Open to page:" default answer 1 with icon note
set pagenumber to text returned of result as integer
open (thefile)
tell document 1
try
if pagenumber < 1 then error
show page pagenumber
on error
display dialog "That page number does not exist." buttons {"Cancel"} default button 1 with icon stop
activate
return
end try
end tell
activate
end tell
end script
tell application "QuarkXPress™"
activate
try
do script {OpenToPage}
on error
end try
end tell